import { data } from '@/node_modules/uview-ui/libs/mixin/mixin';
import request from '@/utils/request.js';

// 获取服务列表
export function  getHousekeepServiceList(data) {
    return request.get('/housekeeping/service/list', data);
}

// 获取服务详情
export function  getHousekeepServiceDetail(data) {
    return request.get(`/housekeeping/service/detail/${data}`);
}

// 获取服务分类列表
export function  getHousekeepCategoryList() {
    return request.get('/housekeeping/category/list');
}

// 获取服务规格
export function  getHousekeepServiceSkus(data) {
    return request.get(`/housekeeping/service/skus/${data}`);
}

// 获取服务评价列表
export function  getHousekeepCommentList(data) {
    return request.get(`/housekeeping/comment/list`, data);
}

// 确认下单
export function  postHousekeepOrderCreate(data) {
    return request.post(`/housekeeping/order/create`, data);
}

// 获取用户虚拟资产
export function  getHousekeepMenmberAssets() {
    return request.get(`/housekeeping/member/assets`);
}

// 获取师傅列表
export function  getHousekeepTechnicalList(data) {
    return request.get(`/housekeeping/technical/list`,data);
}

// 获取师傅详情
export function  getHousekeepTechnicalDetails(data) {
    return request.get(`/housekeeping/technical/details/${data}`);
}

// 获取师傅详情
export function  getservicetimeList(data) {
    return request.get(`/servicetime/list`, data);
}

// 获取师傅评论列表
export function  gethousekeepingTechnicalComments(data) {
    return request.get(`/housekeeping/technical/comments/${data.id}`, data);
}

// 获订单列表
export function  gethousekeepingOrderList(data) {
    return request.get(`/Housekeeping/order/list`,data);
}

